const path = require('path');

function resolve(dir) {
    return path.join(__dirname, dir)
}

module.exports = {
    lintOnSave: false,
    chainWebpack: (config) => {
        config.resolve.alias
            .set('@', resolve('./src'))
            .set('@utils', resolve('./src/utils'))
            .set('@components', resolve('./src/components'))
            .set('@packages', resolve('./src/packages'))
            .set('@editor', resolve('./src/visual-editor'))
            .set('@mixins', resolve('./src/mixins'))
    },
}